
//
//  GDFHeaderView.m
//  GlobalDeliciousFood
//
//  Created by 赵洁 on 16/1/11.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "GDFHeaderView.h"
#define kgap 10
@implementation GDFHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        _lineView = [[UIView alloc]initWithFrame:CGRectMake(kgap, kgap*2, 2, frame.size.height/3)];
        _lineView.backgroundColor = [UIColor orangeColor];
        [self addSubview:_lineView];
        
        _titleLable = [[UILabel alloc]initWithFrame:CGRectMake(_lineView.right+kgap, _lineView.top, 100, _lineView.height)];
        _titleLable.numberOfLines = 0;
        _titleLable.font = [UIFont systemFontOfSize:15];
        [self addSubview:_titleLable];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
